package com.school.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.school.entity.web.HljtAuthorityManagement;

@Repository
public interface HljtAuthorityManagementDao {
	/***
	 * 添加教师
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer addTeacher(HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 添加用户
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer addUser(HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 添加权限
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer addRole(HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 添加优秀教师
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer addExcellent(HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 老师ID查询 权限等
	 * @param hljtAuthorityManagement
	 * @return
	 */
	HljtAuthorityManagement authorityManagementByTeacherId (HljtAuthorityManagement hljtAuthorityManagement);
	
	/***
	 * 老师ID修改权限等
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer updateTeacherByTeacherId (HljtAuthorityManagement hljtAuthorityManagement);
	
	/***
	 * 普通老师ID修改自己资料
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer updateTeacherByTeacherIdPer (HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 老师权限LIst
	 * @param hljtAuthorityManagement
	 * @return
	 */
	List<HljtAuthorityManagement> allAuthorityManagement(HljtAuthorityManagement hljtAuthorityManagement);
	
	/***
	 * 老师权限总数
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer allAuthorityManagementConut (HljtAuthorityManagement hljtAuthorityManagement);
	/***
	 * 老师信息根据主键id
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer deletetTeacherById (Integer id);
	/***
	 * 老师权限根据主键id
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer deletetRoleById (Integer id);
	/***
	 * 老师账号根据主键teacherId
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer deletetUserByTeacherId (Integer teacherId);
	/***
	 * 老师师资力量根据主键teacherId
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer deletetExcellentByTeacherId (Integer teacherId);
	
	/***
	 * 查看该老师是否是师资力量
	 * @param hljtAuthorityManagement
	 * @return
	 */
	Integer findExcellentByTeacherId(Integer teacherId);
	
	
	

}
